#include <QtTest>
#include <stdio.h>

#include "showfileparser_test.h"
#include "ShowLoader_Test.h"
#include "test_ShowManager.h"
#include "test_ShowFormatter.h"


int main(int argc, char *argv[])
{
   int failures = 0;

   ShowFileParser_Test testParser;
   failures += QTest::qExec(&testParser, argc, argv);

   ShowLoader_Test testLoader;
   failures += QTest::qExec(&testLoader, argc, argv);

   test_ShowManager testShowManager;
   failures += QTest::qExec(&testShowManager, argc, argv);

   ShowFormatter_test showFormatterTest;
   failures += QTest::qExec(&showFormatterTest, argc, argv);

   if (failures == 0)
   {
      printf("\n\nALL TESTS PASSED\n\n");
   }
   else
   {
      printf("\n\nTHERE WERE ERRORS\n\n");
   }

   return 0;
}
